package org.emet.entity.biz;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.emet.jee.console.entity.BaseEntity;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

/**
 * 入馆登记信息
 * 
 * @author alex
 * 
 */
@Entity
@Table(name = "T_REG")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class Registration extends BaseEntity {
	// 登记日期
	private java.util.Date regDate;

	// 条形码编码
	private String bizNo;
	private String deadName;
	private String dpyName;
	private String dGender;
	private String deadReason;
	private java.sql.Date deadDate;
	private Integer dAge;
	private String hospital;
	private String homeAddr;
	private String bodyStatus;
	private String houseHoldAddr;
	private String nationality;
	private String race;
	private String credentialType;
	private String credentialNo;
	private String proofWorkUnit;

	// 火化中...,冷藏，取出。
	private Long status;

	private String client;
	private String cPyName;
	private String cGender;
	private Integer age;
	// （机关、团体或属于一个机关、团体的各个部分）
	private String unit;
	private String relationship;
	private String phone;
	private String cCredentialNo;

	private Long driverId;
	private String driverName;
	private Long serviceManId;
	private String serviceManName;
	private Date arriveDateTime;
	private Long vehicleId;
	private String vehicleLpn;
	private String carriageAddr;
	private Date carriageDate;
	private Long bizTeamId;
	private String bizTeam;
	private String bizRegion;

	// for report： 火化时间
	private Date cremationDate;
	private String remark;

	public java.util.Date getRegDate() {
		return regDate;
	}

	public void setRegDate(java.util.Date regDate) {
		this.regDate = regDate;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getProofWorkUnit() {
		return proofWorkUnit;
	}

	public void setProofWorkUnit(String proofWorkUnit) {
		this.proofWorkUnit = proofWorkUnit;
	}

	public String getBodyStatus() {
		return bodyStatus;
	}

	public void setBodyStatus(String bodyStatus) {
		this.bodyStatus = bodyStatus;
	}

	public String getHouseHoldAddr() {
		return houseHoldAddr;
	}

	public void setHouseHoldAddr(String houseHoldAddr) {
		this.houseHoldAddr = houseHoldAddr;
	}

	public String getNationality() {
		return nationality;
	}

	public void setNationality(String nationality) {
		this.nationality = nationality;
	}

	public String getRace() {
		return race;
	}

	public void setRace(String race) {
		this.race = race;
	}

	public String getCredentialType() {
		return credentialType;
	}

	public void setCredentialType(String credentialType) {
		this.credentialType = credentialType;
	}

	public String getCredentialNo() {
		return credentialNo;
	}

	public void setCredentialNo(String credentialNo) {
		this.credentialNo = credentialNo;
	}

	public String getcCredentialNo() {
		return cCredentialNo;
	}

	public void setcCredentialNo(String cCredentialNo) {
		this.cCredentialNo = cCredentialNo;
	}

	public Long getDriverId() {
		return driverId;
	}

	public void setDriverId(Long driverId) {
		this.driverId = driverId;
	}

	public String getDriverName() {
		return driverName;
	}

	public void setDriverName(String driverName) {
		this.driverName = driverName;
	}

	public Long getServiceManId() {
		return serviceManId;
	}

	public void setServiceManId(Long serviceManId) {
		this.serviceManId = serviceManId;
	}

	public String getServiceManName() {
		return serviceManName;
	}

	public void setServiceManName(String serviceManName) {
		this.serviceManName = serviceManName;
	}

	public Date getArriveDateTime() {
		return arriveDateTime;
	}

	public void setArriveDateTime(Date arriveDateTime) {
		this.arriveDateTime = arriveDateTime;
	}

	public Long getVehicleId() {
		return vehicleId;
	}

	public void setVehicleId(Long vehicleId) {
		this.vehicleId = vehicleId;
	}

	public String getVehicleLpn() {
		return vehicleLpn;
	}

	public void setVehicleLpn(String vehicleLpn) {
		this.vehicleLpn = vehicleLpn;
	}

	public String getBizRegion() {
		return bizRegion;
	}

	public void setBizRegion(String bizRegion) {
		this.bizRegion = bizRegion;
	}

	public Date getCremationDate() {
		return cremationDate;
	}

	public String getHospital() {
		return hospital;
	}

	public void setHospital(String hospital) {
		this.hospital = hospital;
	}

	public void setCremationDate(Date cremationDate) {
		this.cremationDate = cremationDate;
	}

	public Long getBizTeamId() {
		return bizTeamId;
	}

	public void setBizTeamId(Long bizTeamId) {
		this.bizTeamId = bizTeamId;
	}

	public String getBizTeam() {
		return bizTeam;
	}

	public void setBizTeam(String bizTeam) {
		this.bizTeam = bizTeam;
	}

	public String getDeadName() {
		return deadName;
	}

	public void setDeadName(String deadName) {
		this.deadName = deadName;
	}

	public String getDpyName() {
		return dpyName;
	}

	public void setDpyName(String dpyName) {
		this.dpyName = dpyName;
	}

	public String getcPyName() {
		return cPyName;
	}

	public void setcPyName(String cPyName) {
		this.cPyName = cPyName;
	}

	public Integer getdAge() {
		return dAge;
	}

	public void setdAge(Integer dAge) {
		this.dAge = dAge;
	}

	public String getHomeAddr() {
		return homeAddr;
	}

	public void setHomeAddr(String homeAddr) {
		this.homeAddr = homeAddr;
	}

	public String getCarriageAddr() {
		return carriageAddr;
	}

	public void setCarriageAddr(String carriageAddr) {
		this.carriageAddr = carriageAddr;
	}

	public String getBizNo() {
		return bizNo;
	}

	public void setBizNo(String bizNo) {
		this.bizNo = bizNo;
	}

	public Date getCarriageDate() {
		return carriageDate;
	}

	public void setCarriageDate(Date carriageDate) {
		this.carriageDate = carriageDate;
	}


	public String getClient() {
		return client;
	}

	public void setClient(String client) {
		this.client = client;
	}

	public String getdGender() {
		return dGender;
	}

	public void setdGender(String dGender) {
		this.dGender = dGender;
	}

	public String getcGender() {
		return cGender;
	}

	public void setcGender(String cGender) {
		this.cGender = cGender;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	public String getRelationship() {
		return relationship;
	}

	public void setRelationship(String relationship) {
		this.relationship = relationship;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getDeadReason() {
		return deadReason;
	}

	public void setDeadReason(String deadReason) {
		this.deadReason = deadReason;
	}

	public java.sql.Date getDeadDate() {
		return deadDate;
	}

	public void setDeadDate(java.sql.Date deadDate) {
		this.deadDate = deadDate;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}

}
